import { createRouter, createWebHashHistory } from 'vue-router'


const routes = [
  {
    path: '/manage',
    redirect: '/home',
  },
  {
    path: '/',
    redirect: '/index',
  },
  {
    path: '/index',
    name: 'Index',
    component: Index,
    meta: {
      title: '登录页面！'
    }
  },{
    path: '/manage',
    name: 'Manage',
    component: Manage,
    meta: {
      title: '欢迎！'
    },
    children:[
        {
      path: '/home',
      name: 'Home',
      component: Home,
      meta: {
        title: '这是主页哒！'
      }
    },
      ]
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
